package kr.co.hanbit;

import java.util.StringTokenizer;

public class StringTokenEx2 {
public static void main(String[] args) {
	System.out.println("split test :::::::::");
	String date = "2005/08/15";
	String[] sp = date.split("/",5);
	for(int i=0;i<sp.length;i++)
		System.out.println("sp["+i+"]:"+sp[i]);
	System.out.println("StringTokenizer test ::::::::::");
	StringTokenizer st = new StringTokenizer(date,"/");
	int index=0;
	while(st.hasMoreTokens()){
		String token = st.nextToken();
		System.out.println("st"+index+":"+token);
		index++;
	}
	
}
}
